package com.AJava1710D.设计模式.责任链模式;

/**
 * 作者: LCG
 * 日期: 2020/6/30 08:37
 * 描述:
 */
public class Test0005 {

    public static void main(String[] args) {



        ChainInterfaceImpl chainInterface1=new ChainInterfaceImpl("A");
        ChainInterfaceImpl chainInterface2=new ChainInterfaceImpl("B");
        ChainInterfaceImpl chainInterface3=new ChainInterfaceImpl("C");


         chainInterface1.setChainInterface(chainInterface2);
         chainInterface2.setChainInterface(chainInterface3);


         chainInterface1.test();





    }

}
